package com.rightsidetech.system.dtos.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * sys_activity_file
 * @author 
 */
@Data
public class ActivityFileReq implements Serializable {

    @ApiModelProperty("类型: 1图片 2视频 3音频 4文件")
    private Byte type;

    @ApiModelProperty("文件名称")
    private String name;

    @ApiModelProperty("文件url")
    @NotNull(message = "文件不能为空")
    @Pattern(regexp = "^http://.*|https://.*",message = "文件参数格式错误")
    @Length(max = 255,message = "文件长度过长")
    private String url;


}